#include <iostream>
#include "Sales_item.h"

int main(void)
{
    Sales_item total, trans;
    std::cout  << "Enter some same of ISBN records:\n";
    if (std::cin >> total)
    {
        while (std::cin >> trans)
        {
            if (compareIsbn(total, trans))
            {
                total = total + trans;
            }
            else
            {
                std::cout << "ISBN differences\n";
                return -1;
            }
        }
        std::cout << "total :ISBN, volumes, money sales, ave_price "
            << total << std::endl;
    }
    else
    {
        std::cout << "No datas!" << std::endl;
        return -1;
    }
    return 0;
}
